package com.mall.product.remote.factory;

import com.mall.common.core.domain.Result;
import com.mall.product.common.domain.PmsSkuSaleAttrValue;
import com.mall.product.remote.PmsSkuInfoRemote;
import com.mall.product.remote.PmsSkuSaleAttrValueRemote;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * 日志服务降级处理
 *
 * @author ruoyi
 */
@Component
public class PmsSkuuSaleAttrValueRemoteFallbackFactory implements FallbackFactory<PmsSkuSaleAttrValueRemote>
{

    @Override
    public PmsSkuSaleAttrValueRemote create(Throwable cause) {
        return new PmsSkuSaleAttrValueRemote() {
            @Override
            public Result<String> findSaleAttrBySkuId(Long skuId) {
                return null;
            }
        };
    }
}
